package com.base.common.lock.redlock;


public class LockRessionThread extends Thread {

    @Override
    public void run() {
        // 获取锁
        boolean isOk = RedissonDistributedLock.acquire("lock_" + Thread.currentThread().getName());


        // 判断
        if (isOk) {
            RedissonDistributedLock.release("lock_" + Thread.currentThread().getName());

        }
    }
}
